﻿@{
    string data = "";
    if(ViewBag.MostraData)
    {
        data = "Aniversários famosos";
    }else{
        data = "Aniversários famosos no dia " + ViewBag.Data;
    }
    ViewBag.Title = data;
}

@section facebookMetaTags
{
    <meta property="og:title" content="@data"/>
    <meta property="og:type" content="article"/>
    <meta property="og:url" content="@Request.Url"/>
    <meta property="og:description" content="Cantinho da cegonha - Aniversários famosos"/>
    <meta property="og:image" content="http://www.cantinhodacegonha.com/content/images/cegonha_2.png"/>
    <meta property="og:site_name" content="Cantinho da cegonha"/>
    <meta property="fb:page_id" content="231110590236634"/>
}

<script type="text/javascript">

    $().ready(function () {

        $("#datadetalhe").datepicker({
            changeYear: false,
            dateFormat: 'dd MM'
        });

        $(".ui-datepicker-trigger").css({ float: "left" });

    });
</script>

<div class="leftCol">
@Html.Partial("_LeftMenu")
<div class="separator_green">
@Html.Partial("_PubVertical")
</div>
<div class="clear"></div>
</div>
<div class="centerCol">
@Html.Partial("_Social")
<h1 style="text-align:center">Aniversários dos famosos</h1>
<br />
<div style="margin-left:45px;">
@using (Html.BeginForm("DetalheData", "Tools", FormMethod.Get, new { onsubmit ="return valida();" }))
{
    <label for="datadetalhe" style="float:left;"><b>Escolha o dia de aniversário (dia/mês)</b></label> <br /><br />  
    <input name="datadetalhe" id="datadetalhe" type="text" class="input_text" style="width:76px;float:left;" readonly="readonly" />
    <input  type="submit" value="Pesquisar" id="btnPostData" style="float: left; margin-left: 30px; margin-top: -3px;"/>
    <div class="clear"></div> 
}
</div>
@if (!ViewBag.MostraData)
{
<br /><div class="separator_green"></div>
<div>
<ul>
<li><b>Signo:</b> @Html.ActionLink((string)ViewBag.Signo.Nome, "Signo", "Tools", new { nome = ViewBag.Signo.Nome }, null)</li>
<li><b>Elemento:</b> @ViewBag.Signo.Elemento</li>
<li><b>Signo chinês:</b> @Html.ActionLink((string)ViewBag.SignoChines.Animal, "SignoChines", "Tools", new { nome = ViewBag.SignoChines.Animal }, null)</li>
</ul>
<br />
<div class="secondary-module"> 
  <h2>Personalidades nascidas a @ViewBag.Data</h2>
  </div>
<ul>
@foreach (var item in ViewBag.Pessoas)
{
		<li>@Html.Raw(item)</li>
} 
</ul>
</div>
}
</div>
<div class="rightCol">
@Html.Partial("_MyFamily")
        <div class="separator_green" style="margin-top:10px">
           @Html.Partial("_PubVideo")
        </div>
</div>
<div class="clear"></div>
<script type="text/javascript">
    function valida() {
        if ($("#datadetalhe").val() == "") return false;
        else return true;
    }
</script>